// 字符串类型注解
const a: string = '小花'
console.log(a)

// 数字类型注解
const b: number = 123
console.log(b)

// 数组类型注解
const array1: number[] = [1, 2, 3]
console.log(array1)
const array2: string[] = ['1', '2', '3']
console.log(array2)
const array3: Array<string> = ['1', '2', '3']
console.log(array3)
